Skip to main content

Quick Start

Last Update: 2025/3/26

The LLMProvider API supports advanced models from multiple vendors, covering areas such as natural language processing, image generation, semantic search, and speech recognition. With this guide, you'll learn how to generate human-like responses based on natural language cues, how to build vector embeddings for semantic search, and how to generate vivid images from text descriptions.

What’s more worth mentioning is that the LLMProvider API adopts an API format compatible with OpenAI. With just a few configuration adjustments, you can use the OpenAI SDK or any OpenAI API-compatible tool to easily achieve seamless integration with the LLMProvider API.

QueryValue
base_urlhttps://platform.llmprovider.ai
api_keyCreate API KEY

WARNING: For compatibility with OpenAI, you can also use https://platform.llmprovider.ai/v1 as base_url. But please note that v1 here has nothing to do with the version of the model.


Create API Key

To start using the LLMProvider API, you first need to obtain an API Key. Please follow these steps:

  1. Visit the LLMProvider official website and register a new account.
  2. After logging in, enter the console and create a new API key on the API Key page.
  3. The system will generate a unique API Key, copy it and save it properly. All subsequent API requests will need to use this key for authentication.

Make your first API request

With your OpenAI API key exported as an environment variable, you're ready to make your first API request. You can either use the REST API directly with the HTTP client of your choice, or use one of our official SDKs as shown below.

curl https://platform.llmprovider.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <LLMProvider API Key>" \
-d '{
"model": "gpt-4",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
}'

Frequently Asked Questions

Q1: How can I update my API key?
A1: You can regenerate a new API key at any time from the console. The old key will be deprecated. Make sure to update all API requests with the new API key.

Q2: How can I view my call history or usage statistics?
A2: You can view your call history, usage data, and statistics directly from the console, which will help you monitor the usage of the API.

Q3: Does the API support batch requests?
A3: Yes, the LLMProvider API supports batch requests, allowing you to process multiple tasks in a single call.